package com.vm.osm.business.dto.eam.equ_part;

import com.google.common.base.MoreObjects;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 设备配件信息
 *
 * @author Xuerong Xue
 */
@Data
public class EamEquPart implements Serializable {
    @ApiModelProperty("品牌")
    private String brand;
    @ApiModelProperty("配件编号")
    private String equ_part_code;
    @ApiModelProperty("配件类型编号")
    private String equ_part_type_id;
    @ApiModelProperty("配件类型名称")
    private String equ_part_type_name;
    @ApiModelProperty("系统编号")
    private String id;
    @ApiModelProperty("生产厂家")
    private String manufactor_id;
    @ApiModelProperty("计量单位")
    private String measure_unit;
    @ApiModelProperty("型号")
    private String model;
    @ApiModelProperty("原值")
    private String original_value;
    @ApiModelProperty("pn")
    private String pn;
    @ApiModelProperty("购买日期")
    private Long purchase_date;
    @ApiModelProperty("sn")
    private String sn;
    @ApiModelProperty("规格")
    private String spec;
    @ApiModelProperty("库存下限")
    private Integer stock_down_limit;
    @ApiModelProperty("库存数量")
    private Integer stock_num;
    @ApiModelProperty("库存上限")
    private Integer stock_up_limit;
    @ApiModelProperty("供应商")
    private String supplier_id;
    @ApiModelProperty("库存编号")
    private String ware_house_id;
    @ApiModelProperty("质保日期")
    private Long warranty_date;

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("brand", brand)
                .add("equ_part_code", equ_part_code)
                .add("equ_part_type_id", equ_part_type_id)
                .add("equ_part_type_name", equ_part_type_name)
                .add("id", id)
                .add("manufactor_id", manufactor_id)
                .add("measure_unit", measure_unit)
                .add("model", model)
                .add("original_value", original_value)
                .add("pn", pn)
                .add("purchase_date", purchase_date)
                .add("sn", sn)
                .add("spec", spec)
                .add("stock_down_limit", stock_down_limit)
                .add("stock_num", stock_num)
                .add("stock_up_limit", stock_up_limit)
                .add("supplier_id", supplier_id)
                .add("ware_house_id", ware_house_id)
                .add("warranty_date", warranty_date)
                .toString();
    }
}
